﻿@{
    ViewBag.Title = "";
}
<script src="/Content/Index/js/jquery-2.1.4.min.js"></script>
<script>
    $(function () {
        //已读
        $('#yd').click(function () {
            //ajax传值
            $.post('/Home/question2', { type: 1 }, function (data) {

                $('#tag-question-list').html(data);
            })
        })
        //未读
        $('#wd').click(function () {
            //ajax传值
            $.post('/Home/question2', { type: 2 }, function (data) {

                $('#tag-question-list').html(data);
            })
        })

        //全部

        $('#qb').click(function () {
            //ajax传值
            $.post('/Home/question2', { type: 3 }, function (data) {

                $('#tag-question-list').html(data);
            })
        })

        //下拉框点击事件

        $('.dianji').click(function () {
            var id = $(this).val();
            //ajax传值
            $.post('/Home/question2', { type: 3, id: id }, function (data) {

                $('#tag-question-list').html(data);
            })
        })

    })


</script>

   <div id="main">
    @*课程分布视图*@
    @Html.Partial("Front-Partial1")
    <div id="detailContent">
        <div class="detailContentLeft-tags">
            <a href="/Home/ClassHour/@ViewBag.course.CoursesId">
                <div id="videoSelect" class="detailContentLeft-video-tag">视频教程</div>
            </a>
            <a href="/Home/question">
                <div id="questionSelect " class="detailContentLeft-video-tagSelect"><h4>互动问答</h4></div>
            </a>
            <a href="/Home/download">
                <div id="detail-resource-tab" class="detailContentLeft-video-tag">资源下载</div>
            </a>
            <a href="/Home/ShowNotes">
                <div id="detail-resource-tab" class="detailContentLeft-video-tag">笔记</div>
            </a>
           
            <a href="/Home/Estimat">
                <div id="estimate" class="detailContentLeft-video-tag">评价</div>
            </a>
            <a href="/Home/topics">
                <div id="estimate" class="detailContentLeft-video-tag">话题</div>
            </a>
            
        </div>

        <!--呈现某个系列课程的具体内容页面-->
        <div id="detailContentLeft-question-list">
            <div id="question-list-left">
                <div id="question-list">
                    <div class="question-tag">
                        <ul id="myTab" class="nav nav-tabs">
                            <li class="active">
                                <a href="#home" id="qb" data-toggle="tab">
                                    全部问题
                                </a>
                            </li>
                            <li><a href="#ios" data-toggle="tab" id="yd">已回答</a></li>
                            <li><a href="#jmeter" data-toggle="tab" id="wd">未回答</a></li>
                        </ul>
                    

                        <select id="section-select" name="HourId">
                            <option value="0" class="dianji">全部</option>
                            @foreach (var item in ViewBag.list as List<LeEdu.MODEL.Hour>)
                            {
                                <option value="@item.HourId" class="dianji">@item.HTitle</option>
                            }
                        </select>
                        <div class="clearBoth"></div>
                    </div>
                    <div id="tag-question-list">
                        @foreach (var item in ViewBag.coment as List<LeEdu.MODEL.Comment>)
                        {
                            <div class="question-item">
                                <div class="question-notanswer">@(item.CType == 0 ? "未回答" : "已回答")</div>
                                <div class="question-content">
                                    <a href="/Home/VideoPlay/@item.CommentId" target="_blank"><pre style="margin:0px" class="question-text notice15" questionid="4499">@item.Content</pre></a>
                                    <div class="question-time detial13">
                                        <div style="float: left;margin-right:10px;">
                                            <span style="font-weight: bold">@item.CPeople</span>
                                            <span>提问于</span>
                                            <span>@item.PostTime</span>
                                            <span>来自于</span>
                                        </div>
                                        <a class="section-link" href="/course/section/1000000540">
                                            <div title="1.认识headers、版本、重要资源【试看】" style="max-width: 230px; text-overflow: ellipsis; overflow: hidden;float:left;margin-right:5px; white-space: nowrap; display: block">@item.Hour.HTitle</div>
                                        </a>
                                        <div style="float: left">
                                            <a href="/Home/questiondetail/@item.CommentId" target="_blank" style="color: #3890CA" questionid="4499">
                                                <span>讨论( @item.Talker )</span>
                                            </a>
                                        </div>
                                    </div>
                                </div>
                                <div class="clearBoth"></div>
                            </div>
                        }


                    </div>

                </div>
            </div>
            <div id="question-list-right">
                <div id="question-ask-button-wrapper">
                    <a href="/Home/newquestion" target="_blank">
                        <div id="question-ask-button" class="lbtn bluebtn">
                            我要提问
                        </div>
                    </a>
                    <div style="border-bottom: 1px solid #ddd"></div>
                </div>
                <div id="hottest-questions">
                    <div id="hottest-questions-title" class="notice16">
                        热门问题
                    </div>
                    <div id="hottest-questions-list">
                        <a href="/course/question/4473" target="_blank">
                            <div class="questions-list-item notice14" questionid="4473"><span class="questions-list-dot">·</span>dfsgf d ff</div>
                        </a>
                        <a href="/course/question/4477" target="_blank">
                            <div class="questions-list-item notice14" questionid="4477"><span class="questions-list-dot">·</span>ffds</div>
                        </a>
                        <a href="/course/question/4479" target="_blank">
                            <div class="questions-list-item notice14" questionid="4479"><span class="questions-list-dot">·</span>你好好的 啊</div>
                        </a>
                        <a href="/course/question/4480" target="_blank">
                            <div class="questions-list-item notice14" questionid="4480"><span class="questions-list-dot">·</span>是的方式发送到答复是范德萨发大水士大夫士大夫</div>
                        </a>
                    </div>
                </div>
            </div>
        </div>
        <div id="scourse-forbid-dialog" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" data-backdrop="static">
            <div class="modalTitleContent">
                <div class="modalTitle">提示</div>
                <div class="modalCloseButton"></div>
                <div class="clearBoth"></div>
            </div>
            <div id="scourse-forbid-content">
                <div class="notice16" id="scourse-forbid-title">
                    你尚未购买本课程，请购买后观看
                </div>
                <div class="mbtn bluebtn" id="scourse-forbid-button">知道了</div>
            </div>
        </div>
    </div>
    <input type="hidden" value="40" id="courseID">
</div>



    